﻿using ChurchDiary.BLL;
using ChurchDiary.TableEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace ChurchWebsite.Areas.Admin.Controllers
{
    public class OrganizationStructureController : Controller
    {
        //
        // GET: /Admin/OrganizationStructure/

        public ActionResult Index()
        {
            return View();
        }

        public JsonResult OrganizationStructure()
        {
            BLL_OrganizationSettings BLOS = new BLL_OrganizationSettings();
            return Json(BLOS.OrganizationStructure());
        }
        public JsonResult SaveOrganizationStructure(OrganizationStructure organizationstructure)
        {
            BLL_OrganizationSettings BLOS = new BLL_OrganizationSettings();
            return Json(BLOS.AddOrganizationStructure(organizationstructure));
        }

    }
}
